{extend name="public/common"} {block name="body"}
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
</head>

<style type="text/css">
	td{
		text-align:center;
	}
</style>
<body>
	<script type="text/javascript" src="__TEMPLATE__/index/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
	<link rel="stylesheet" type="text/css" href="__TEMPLATE__/index/bootstrap-3.3.7-dist/css/bootstrap.css"/>
	<div class="admin-biaogelist" style="top: 50px;padding-left:20px;padding-top:20px;">
		<div>
		时间:
		<a href="{:url('member/hierarchyDiagram')}?yhid={$uid}&time=today"><span {if($time=="today")}style="color:red"{/if}>今天</span></a>
		<a href="{:url('member/hierarchyDiagram')}?yhid={$uid}&time=yesterday"><span {if($time=="yesterday")}style="color:red"{/if}>昨天</span></a>
		<a href="{:url('member/hierarchyDiagram')}?yhid={$uid}&time=week"><span {if($time=="week")}style="color:red"{/if}>本周</span></a>
		<a href="{:url('member/hierarchyDiagram')}?yhid={$uid}&time=month"><span {if($time=="month")}style="color:red"{/if}>本月</span></a>
		<a href="{:url('member/hierarchyDiagram')}?yhid={$uid}&time=last month"><span {if($time=="last month")}style="color:red"{/if}>上月</span></a>
		</div>
		<table class="table table-bordered table-hover">
  		<tr class="" style="color:#5eb95e;background-color:rgba(94,185,94,.115);font-weight:900;">
  			<td>序号</td>
  			<td>名称</td>
  			<td>账户余额</td>
  			<td>佣金</td>
  			<td>打码量</td>
  			<td>中奖总金额</td>
  			<td>彩金总金额</td>
  			<td>充值总金额</td>
  			<td>投注总金额</td>
  			<td>提现总金额</td>
  			<td>代理转移</td>
  		</tr>
		{volist name="list" id="item"}
			<tr>
				<td>{$key+1}</td>
				<td style='text-align:left;'>
					{if(-1!=$item.level)}
						{php} echo str_repeat("&nbsp;&nbsp;&nbsp;├&nbsp;&nbsp;&nbsp;", $item['level']); {/php}
						{$item.username}
					{else/}
						{$item.username}
					{/if}
				</td>
				<td data="{$item.je|default=0}" class="all_td"></td>
				<td >{$item.dlyj|default=0}</td>
				<td >{$item.dml|default=0}</td>
				<td class="all_td" data="{$item.zjzje|default=0}"></td>
				<td class="all_td" data="{$item.zcjje|default=0}"></td>
				<td class="all_td" data="{$item.czzje|default=0}"></td>
				<td class="all_td" data="{$item.tzzje|default=0}"></td>
				<td class="all_td" data="{$item.txzje|default=0}"></td>
				<td style='text-align:center;'>
					{if($item.level!=-1 && $item.level!=0)}<a href="/admin/Member/us_dlzy?uid={$item.id}">转移</a>{/if}
				</td>
			</tr>
		{/volist}
	</table>
	{if condition="input('get.url')"}
	<div class="btn btn-primary radius"><a onclick="fh_close()" style="color:white;">关闭</a></div>
	{else/}
	 <div class="btn btn-primary radius"><a href="{:url('member/us_dllist')}" style="color:white;">关闭</a></div>
	{/if}
	</div>

{/block}

{block name="js"}
	<script type="text/javascript">
function fh_close(){
	var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
	parent.layer.close(index);
}
var allTd=document.getElementsByClassName('all_td')
for(var i=0;i<allTd.length;i++){
var str_td=parseFloat(allTd[i].getAttribute('data'))
   var str_td_two=str_td.toFixed(2)
	allTd[i].innerHTML=str_td_two
}
</script>

{/block}